<?php if (!defined('THINK_PATH')) exit();?>
  <link href="http://www.ucmaim.com/Public/Ucmaim/Home/Css/common.css" rel="stylesheet" type="text/css">
  <link rel="stylesheet" type="text/css" href="http://www.ucmaim.com/Public/Ucmaim/Home/Css/global.css">
  <link href="http://www.ucmaim.com/Public/Ucmaim/Home/Css/global_new.css" rel="stylesheet" type="text/css">
  <link rel="stylesheet" type="text/css" href="http://www.ucmaim.com/Public/Ucmaim/Home/Css/Public.css">
  <link rel="stylesheet" type="text/css" href="http://www.ucmaim.com/Public/Ucmaim/Home/Css/Personal.css">
  <link rel="stylesheet" type="text/css" href="http://www.ucmaim.com/Public/Ucmaim/Home/Css/date/dateRange.css"/>
  <script type="text/javascript" src="http://www.ucmaim.com/Public/Ucmaim/Home/Js/date/dateRange.js"></script>
  <script type="text/javascript" src="http://www.ucmaim.com/Public/Ucmaim/Home/Js/jquery-1.8.3.min.js"></script>
  <style type="text/css">
    .header {
      height:105px;
    }
    .size_selected {
      border:#f90 solid 1px;
      color:#f90;
      width:16px;
      height:16px;
      line-height:16px;
    }
    .cxFormtime {
      width: 69px;
      height:21px;
      margin-left:10px;
      border: medium none;
      cursor: pointer;
    }

    .downContent ul li {
      float:left;
      list-style-type:none;
    }
    .search_time_span {
      margin: 0 2px;
      background-color: #EFEFEF;
      border: 1px solid;
      padding: 4px;
    }
    .search_time_span_select {
      margin: 0 2px;
      background-color: #3D86EA;
      border: 1px solid #3D86EA;;
      padding: 4px;
      color: white;
    }
    .confirm_button {
      color: #fff;
      /*line-height: 1px;*/
      background: #06c;
      text-align: center;
      float: left;
      display: block;
      padding: 0 10px;
      text-decoration: none;
    }
    .downContent ul li {
      float:left;
      list-style-type:none;
    }
    .bail_notopeneds {
      background: #ffeaea;
      border: solid #ffabab 1px;
      padding: 10px;
      text-align: left;
      width:300px;
      margin-top:10px;
    }
    .sem-button {
      font-size:12px;
      cursor: pointer;
      display: inline-block;
      min-height: 1em;
      outline: 0;
      border: none;
      vertical-align: baseline;
      background: #E0E1E2;
      color: rgba(0, 0, 0, .6);
      font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
      margin: 0 .25em 0 0;
      padding: 1px 6px;
      text-transform: none;
      text-shadow: none;
      font-weight: 700;
      line-height: 1em;
      font-style: normal;
      text-align: center;
      text-decoration: none;
      border-radius: .28571429rem;
      box-shadow: 0 0 0 1px transparent inset, 0 0 0 0 rgba(34, 36, 38, .15) inset;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      -webkit-transition: opacity .1s ease, background-color .1s ease, color .1s ease, box-shadow .1s ease, background .1s ease;
      transition: opacity .1s ease, background-color .1s ease, color .1s ease, box-shadow .1s ease, background .1s ease;
      will-change: '';
      -webkit-tap-highlight-color: transparent;
      -webkit-appearance: button;
      font: inherit;
      letter-spacing: normal;
      word-spacing: normal;
    }
    .sem-button.primary {
      background-color: #2185D0;
      color: #FFF;
      text-shadow: none;
      background-image: none;
      box-shadow: 0 0 0 0 rgba(34, 36, 38, .15) inset;
    }
    .sem-button.primary:hover {
      background-color: #1678c2;
      color: #FFF;
      text-shadow: none;
    }
    .sem-button.orange {
      background-color: #F2711C;
      color: #FFF;
      text-shadow: none;
      background-image: none;
    }
    .sem-button.orange:hover {
      background-color: #f26202;
      color: #FFF;
      text-shadow: none;
    }
    .sem-button.large {
      padding: 6px 12px;
      font-siez:14px;
    }
  </style>

</head>
<body>

<!--头部开始-->
<div class="top_box">
    <div class="top"><!--顶部区域-->
        <div class="top_l left">
            <dl>
            <?php if(empty($member_info)): ?><span id="span_user">
                    <dt>您好！欢迎访问游戏卖</dt>
                    <dt><a href="<?php echo U('Home/Member/Login', 'ref='.$current_url, '');?>" class="blue" rel="nofollow">登录</a></dt>
                    <dt><a href="<?php echo U('Home/Member/Register');?>" class="blue" rel="nofollow">免费注册</a></dt>
                </span>
            <?php else: ?>
                <span id="span_user">
                    <dt><a rel="nofollow" href="<?php echo U('Home/Member/Index');?>"><?php echo ($member_info["nickname"]); ?></php></a>，欢迎回来！</dt>
                    <dt class="top_grayline">|</dt>
                    <dt><a href="<?php echo U('Home/Member/Logout');?>" rel="nofollow">注销</a></dt>
                </span><?php endif; ?>
            </dl>
        </div>
    </div>
</div>
<a class="showScreenPic"></a>
<div class="header">
    <div class="left">
        <h1><a id="homePageLogoLinkUrl" href="<?php echo U('Home/Index');?>" title="游戏卖" style="cursor:default;"><img id="homePageLogo" src="http://www.ucmaim.com/Public/Ucmaim/Home/Images/common/indexlogo.png" alt="游戏卖"></a></h1>
    </div>
    <div class="top_search pusht">
        <div class="t_search"> <a href="javascript:void(0)" class="gray hover">简单搜索</a> </div>
        <div class="s_blue_box">
            <form method="get" action="<?php echo U('Home/Goods/Items');?>" name="searchForm" id="searchForm">
            <ul class="hide" style="display: block;">
                <input id="txt_search_simple" type="text" name="keyword" value="<?php echo ($_GET['keyword']); ?>" class="input gray_a" placeholder="关键字找游戏">
                <input type="hidden" name="sort" value="" id="sort">
                <input type="hidden" name="g" id="g">
            </ul>
            </form>
        </div>
        <a href="javascript:toSearch()"  id="search_main" class="search" style="width: 200px;" >搜索</a>
        <!--页面配置的热门搜索推荐-->
        <div class="hotsearch">
            <dl>
            </dl>
        </div>
    </div>
</div>
<script type="text/javascript">
    function toSearch(){
            $('#searchForm').submit();
    }
</script>
<!--头部结束-->
<div class="clear"></div>
<div class="center yxlb">您的当前位置是：首页 - <span style="color:#3366cc">我的游戏卖</span></div>
<div class="clear"></div>
<div class="center">
  
  <script src="http://www.ucmaim.com/Public/Ucmaim/Home/Js/jquery-1.8.3.min.js"></script>
  <script src="http://www.ucmaim.com/Public/Ucmaim/Home/Js/jquery.timer.js"></script>
  <script type="text/javascript">
    var address = window.location.href.substring(window.location.href.lastIndexOf('/'));
    $('.personal_left ul li a').removeClass('global_a_hover');
    $.each($('.personal_left ul li'), function(i, item){
      var href = $(item).children('a').attr('href');
      href = href.substring(href.lastIndexOf('/'));
      if (address.indexOf(href) != -1) {
        $(item).children('a').addClass('global_a_hover');
      }
    });
  </script>
  <div class="personal_right">
    <div class="ddgl">
      <h1>我购买的订单</h1>
      <form id="queryForm" method="post">
        <div class="yxddcx">
          <ul>
            <li style="line-height:28px;"> <span style="float:left;">订 单 时 间：</span>

              <div class="ta_date" id="div_date1">
                <span class="date_title" id="date1"></span>
                <a class="opt_sel" id="input_trigger1" href="#">
                  <i class="i_orderd"></i>
                </a>
              </div>
              <div id="datePicker1"></div>

              <span style="margin-left:62px"></span>

              <!--<span class="timespan">
              	<a href="javascript:void(0);" class="search_time_span" id="aTodayDemo1">今天</a>
                <a href="javascript:void(0);" class="search_time_span" id="aRecent30DaysDemo1">最近1个月</a>
                <a href="javascript:void(0);" class="search_time_span" id="aRecent90DaysDemo1">3个月</a>
                <a href="javascript:void(0);" class="search_time_span" id="aRecent1YearDemo1">最近1年</a>
              </span>-->

              <script type="text/javascript">

                //var STATS_START_TIME = '1329148800';
                var dateRange1 = new pickerDateRange('date1', {
                  isTodayValid : true,
                  aToday : 'aTodayDemo1', //今天
                  aRecent30Days : 'aRecent30DaysDemo1', //最近30天
                  aRecent90Days : 'aRecent90DaysDemo1', //最近90天
                  aRecent1Year : 'aRecent1YearDemo1',//最近1年
                  startDate : '<?php echo ($startDate); ?>',
                  endDate : '<?php echo ($endDate); ?>',
                  needCompare : false,
                  defaultText : ' 至 ',
                  autoSubmit : true,
                  inputTrigger : 'input_trigger1',
                  theme : 'ta',
                  magicSelect : false,

                });
                $(".timespan a").click(function(){
                  $(".timespan a").removeClass("search_time_span_select");
                  $(this).addClass("search_time_span_select");
                });
              </script>

            </li>
            <li> 订 单 编 号：
              <input name="order_sn" size="28" value="<?php echo ($order_sn); ?>">
              <input type="hidden" name="status" value="<?php echo ($status); ?>">
              <input type="submit" value="" class="cxFormtime" id="btnQuery">
              <script type="text/javascript">
                $('.cxFormtime').click(function(){
                  $('#queryForm').append($('#startDate'));
                  $('#queryForm').append($('#endDate'));
                });
              </script>
            </li>
          </ul>
        </div>
        <div class="yxddlb">
          <div id="nave">
            <ol>
              <?php if($status === ''): ?><a class="a_hover">全部</a>
                <?php else: ?>
                <a href="<?php echo U('Home/Member/SellerOrderList');?>">全部</a><?php endif; ?>
            </ol>
            <ol>
              <?php if($status == '0'): ?><a class="a_hover">已完成订单</a>
                <?php else: ?>
                <a href="<?php echo U('Home/Member/SellerOrderList', array('status'=>0));?>">已完成订单</a><?php endif; ?>
            </ol>
            <ol>
              <?php if($status == '2'): ?><a class="a_hover">等待发货</a>
                <?php else: ?>
                <a href="<?php echo U('Home/Member/SellerOrderList', array('status'=>2));?>">等待发货</a><?php endif; ?>
            </ol>
            <ol>
              <?php if($status == '-1'): ?><a class="a_hover">已取消订单</a>
                <?php else: ?>
                <a href="<?php echo U('Home/Member/SellerOrderList', array('status'=>-1));?>">已取消订单</a><?php endif; ?>
            </ol>
            <ol>
              <?php if($status == '1'): ?><a class="a_hover">等待付款</a>
                <?php else: ?>
                <a href="<?php echo U('Home/Member/SellerOrderList', array('status'=>1));?>">等待付款</a><?php endif; ?>
            </ol>
            <ol>
              <?php if($status == '4'): ?><a class="a_hover">等待结算</a>
                <?php else: ?>
                <a href="<?php echo U('Home/Member/SellerOrderList', array('status'=>4));?>">等待结算</a><?php endif; ?>
            </ol>
          </div>
          <div class="ddxq">
            <ul>
              <li class="spmc">商品名称</li>
              <li class="zj">总价</li>
              <li class="sl">数量</li>
              <li class="khfw">买家游乐淘账号</li>
              <li class="ddzt">订单状态</li>
            </ul>
          </div>
          <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div id="menud_con">
              <div class="ddlb">
                <h1>订单编号：<?php echo ($vo["order_sn"]); ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;创建时间：<?php echo (date('Y-m-d H:i:s', $vo["order_time"])); ?></h1>
                <ul class="clearfix" goodsid="<?php echo ($vo["goods_id"]); ?>">
                  <ol class="spmc">
                  <span style="color:#36c"> <img src="http://www.ucmaim.com/Public/Ucmaim/Home/Images/common/buy_ji.png"> <?php echo ($vo["goods_title"]); ?>
                  <?php echo ($vo["gc_name"]); ?> </span><br>
                    游戏区服：
                    <?php if(is_array($vo["goods_relation"])): $key = 0; $__LIST__ = $vo["goods_relation"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vor): $mod = ($key % 2 );++$key; $t = count($vo['goods_relation']); ?>
                      <?php if($key > 1): ?><a href="javascript:;" class="gray"><?php echo ($vor["gc_name"]); ?></a> <?php if($key < $t): ?>/<?php endif; endif; endforeach; endif; else: echo "" ;endif; ?>
                  </ol>
                  <ol class="zj">
                    <?php $total_price = price($vo['order_price'] * $vo['order_number'], false); ?>
                    <span style="color:#F90"><?php echo ($total_price); ?></span>元
                  </ol>
                  <ol class="sl">
                    <?php echo ($vo["order_number"]); ?> <br>
                  </ol>
                  <ol class="khfw">
                    <?php echo (replacement($vo["order_zytuid"])); ?>
                  </ol>


                  <?php switch($vo["order_real_status"]): case "0": ?><ol class="ddzt">
                        <a>订单已完成</a>
                      </ol><?php break;?>
                    <?php case "1": ?><ol class="ddzt">
                        <a>等待买家付款</a><br>
                      </ol><?php break;?>
                    <?php case "2": ?><ol class="ddzt">
                        <a class="status_text">待发货</a><br>
                        <div id="timer<?php echo ($vo["order_sn"]); ?>"></div>
                        <a class="fkd cs" href="<?php echo U('Home/Buy/SendGoods', 'sn='.$vo['order_sn']);?>"><img src="http://www.ucmaim.com/Public/Ucmaim/Home/Images/Personal/fkd.png" width="69" height="21"></a>
                        <script>
                          var t_<?php echo ($vo["order_sn"]); ?> = $('#timer<?php echo ($vo["order_sn"]); ?>');
                          t_<?php echo ($vo["order_sn"]); ?>.timer({
                            now:<?php echo time();?>,
                            count: <?php echo ($config['SEND_EXPIRE']); ?>, //seconds, 过期时间
                            offset:<?php echo ($vo["pay_time"]); ?>,
                            overtime: function(e){
                              e.html('等待客服处理');
                              t_<?php echo ($vo["order_sn"]); ?>.siblings('a.status_text').html('发货超时');
                              t_<?php echo ($vo["order_sn"]); ?>.siblings('.fkd').remove();
                            }
                          });
                        </script>
                      </ol><?php break;?>
                    <?php case "3": ?><ol class="ddzt">
                        <a class="status_text">等待买家确认收货</a><br>
                        <div id="timer<?php echo ($vo["order_sn"]); ?>"></div>
                        <script>
                          var t_<?php echo ($vo["order_sn"]); ?> = $('#timer<?php echo ($vo["order_sn"]); ?>');
                          t_<?php echo ($vo["order_sn"]); ?>.timer({
                            now:<?php echo time();?>,
                            count: <?php echo ($config['CONFIRM_EXPIRE']); ?>, //seconds, 过期时间
                            offset:<?php echo ($vo["send_time"]); ?>,
                            overtime: function(e){
                              t_<?php echo ($vo["order_sn"]); ?>.siblings('a.status_text').html('确认收货超时');
                              e.html('<a href="javascript:;" target="_blank">等待客服处理</a>');
                            }
                          });
                        </script>
                      </ol><?php break;?>
                    <?php case "4": ?><ol class="ddzt">
                        <a>买家已确认收货</a>
                      </ol><?php break;?>
                    <?php case "-1": ?><ol class="ddzt">
                        订单已取消
                        <div class="tsgrzx" onmousemove="javascript:$('#prompt_<?php echo ($vo["order_sn"]); ?>').show();" onmouseout="javascript:$('#prompt_<?php echo ($vo["order_sn"]); ?>').hide();"><img src="http://www.ucmaim.com/Public/Ucmaim/Home/Images/common/qxyy.png"></div>
                      </ol>
                      <ol id="prompt_<?php echo ($vo["order_sn"]); ?>" marginpt="-1" type="revoke" class="prompt" superbillid="<?php echo ($vo["order_sn"]); ?>" style="display: none;">
                        <div style="width:205px; height:65px; margin:0 auto; margin-top:12px;"><?php echo (replacement($vo["order_remark"],'系统自动撤单')); ?></div>
                      </ol><?php break;?>
                    <?php case "-2": ?><ol class="ddzt">
                        <a>发货超时</a><br>
                        <a href="javascript:;" target="_blank">等待客服处理</a>
                      </ol><?php break;?>
                    <?php case "-3": ?><ol class="ddzt">
                        <a>确认收货超时</a><br>
                        <a href="javascript:;" target="_blank">等待客服处理</a>
                      </ol><?php break;?>
                    <?php case "-4": ?><ol class="ddzt">
                        买家退款成功
                        <div class="tsgrzx" onmousemove="javascript:$('#prompt_<?php echo ($vo["order_sn"]); ?>').show();" onmouseout="javascript:$('#prompt_<?php echo ($vo["order_sn"]); ?>').hide();"><img src="http://www.ucmaim.com/Public/Ucmaim/Home/Images/common/qxyy.png"></div>
                      </ol>
                      <ol id="prompt_<?php echo ($vo["order_sn"]); ?>" marginpt="-1" type="revoke" class="prompt" superbillid="<?php echo ($vo["order_sn"]); ?>" style="display: none;">
                        <div style="width:205px; height:65px; margin:0 auto; margin-top:12px;"><?php echo ($vo["order_remark"]); ?></div>
                      </ol><?php break;?>
                    <?php case "-5": ?><ol class="ddzt">
                        <a>买家支付超时</a><br>
                      </ol><?php break; endswitch;?>
                </ul>
              </div>
            </div><?php endforeach; endif; else: echo "" ;endif; ?>

          <script type="text/javascript">
            $('.confirm_cancel').click(function(){
              if( ! window.confirm('您确认要取消此订单吗?') ){
                return false;
              }
            });
          </script>
          <!--页码-->
          <div class="page">
            <?php echo ($page); ?>
          </div>
          <div class="clear"></div>
        </div>
      </form>
    </div>
  </div>
</div>
<div class="clear"></div>
<div class="clear"></div>
<div class="footer"><!--底部区域-->
    <div class="advan">
        <ul>
            <li class="s1">寄售担保 无货保赔</li>
            <li class="s2">安全服务 保障资金</li>
            <li class="s3">7*24小时 专属客服</li>
            <li class="s4">权威认证 安全可信</li>
        </ul>
    </div>
    <div class="link"><!--文字链接-->
        <a href="<?php echo U('Home/About/aboutus');?>" target="_blank" rel="nofollow">关于游戏卖</a><span>|</span> <a href="<?php echo U('Home/About/contactus');?>" target="_blank" rel="nofollow">联系我们</a><span>|</span> <a href="<?php echo U('Home/About/mian');?>" target="_blank" rel="nofollow">免责声明</a><span>|</span> <a href="<?php echo U('Home/About/hr');?>" target="_blank" rel="nofollow">诚聘英才</a><span>|</span>  <a href="<?php echo U('Home/About/cooperation');?>" target="_blank" rel="nofollow">商务合作</a><span>|</span>  <a href="<?php echo U('Home/About/qualification');?>" target="_blank" rel="nofollow">企业资质</a><span>|</span> <a href="http://www.mcprc.gov.cn/" target="_blank">文化部文网文</a>
    </div>
    <div class="copyright gray_a font_a">© 2010-2015 中云通科技股份有限公司 版权所有 <a href="http://www.miibeian.gov.cn" target="_blank" rel="nofollow">粤ICP备14011508号-1</a></div>
    <div class="link"><!--文字链接--></div>
    <!--版权信息-->
    <div class="honor">
        <ul style="margin-left: 110px;">
            <li><a href="http://www.miibeian.gov.cn" target="_blank" class="s2" rel="nofollow"></a></li>
            <li><a href="http://www.cyberpolice.cn/wfjb/" target="_blank" class="s3" rel="nofollow"></a></li>
            <li><a href="https://www.alipay.com" target="_blank" class="s4" rel="nofollow"></a></li>
            <li><a href="<?php echo U('Home/About/wh');?>" target="_blank" class="s6" rel="nofollow"></a></li>
        </ul>

    </div>
</div>
</body>
</html>